package com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.Range;

/**
 * Created by zhaosh19213 on 2016/8/1.
 */
public class AdminPageForm extends AdminBaseForm {

    @Range(min = 1,max = 10000)
    protected Integer page_no = 1;
    @Range(min = 1 ,max = 10000)
    protected Integer request_num = 10;

    protected Integer start_row = (page_no-1) * request_num ;

    public Integer getPage_no() {
        return page_no;
    }

    public void setPage_no(Integer page_no) {
        this.page_no = page_no;
    }

    public Integer getRequest_num() {
        return request_num;
    }

    public void setRequest_num(Integer request_num) {
        this.request_num = request_num;
    }

    public Integer getStart_row() {
        start_row = (page_no-1)*request_num;
        return start_row;
    }

    public void setStart_row(int start_row) {
        this.start_row = start_row;
    }

    public void setStart_row(Integer start_row) {
        this.start_row = start_row;
    }
}
